package ag.ui;

import ag.AGContext;
import ag.AGModel;
import android.graphics.PointF;
import android.graphics.RectF;

public class AGControl extends AGUIComponent {
	private boolean _enable;
	
	public AGControl(){
		super();
		this._enable = true;
	}
	
	public AGControl(AGModel model){
		super();
		this._enable = true;
	}
	
	public AGControl(RectF rect){
		super();
		this.setPosition(rect.left, rect.top);
		this.setWidth((int)rect.width());
		this.setHeight((int)rect.height());
		this._enable = true;
	}
	
	public RectF getActualRect(){
		return this.getAbsoluteRect();
	}
	
	public void setRect(RectF rect){
		this.setPosition(rect.left, rect.top);
		this.setWidth((int)rect.width());
		this.setHeight((int)rect.height());
	}
	
	public void setEnable(boolean enable){
		this._enable = enable;
	}
	
	public boolean getEnable(){
		return this._enable;
	}
}
